import {useParams} from 'umi'
const NewsUpdate:React.FC=()=>{
    const params=useParams()
    console.log('params',params.id);
    return(
    <>
        <h2>新闻编辑</h2>
        <div>{params.id}</div>
    </>)
}
export default NewsUpdate